import React from 'react';
import { Route } from 'react-keeper';

import Home from './home';
import Subject from './subject';
import Do from './do';

const PageVote = (cb) => {
  require.ensure([], () => cb(require('./PageVote.jsx')), 'vote')
};

export default {
  route: () => (
    <div>
      <Route loadComponent={PageVote} path='/vote'>
        <Home.route/>
        <Subject.route/>
        <Do.route/>
      </Route>
    </div>)
};


